//
//  common.swift
//  YMWeiBo
//
//  Created by mimi on 16/7/20.
//  Copyright © 2016年 mimi. All rights reserved.
//

import UIKit

//app切换根控制器的通知
let WBSwiftRootViewControllerNoti = "WBSwiftRootViewControllerNoti"
// 表情键盘删除按钮通知
let WBEmoticonDeleteButtonNoti = "WBEmoticonDeleteButtonNoti"
// 表情键盘按钮通知
let WBEmoticonButtonsNoti = "WBEmoticonButtonsNoti"

//主体色
let ThemeColor = UIColor.orangeColor()
//屏幕宽度
let SCREENW = UIScreen.mainScreen().bounds.width
//屏幕高度
let SCREENH = UIScreen.mainScreen().bounds.height
//RGB色
// RGB颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1) -> UIColor{
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255, alpha: alpha)
}
// 随机颜色
func RandomColor() ->UIColor{
    let r = random()%256
    let g = random()%256
    let b = random()%256
    return RGB(CGFloat(r), green: CGFloat(g), blue: CGFloat(b))
}

// 微博账号
//let wbName = "630342232@qq.com"
//let wbPasswd = "woshishui@@meinv"

let wbName = "15056905359"
let wbPasswd = "ai3alleniverson."
let APPKEY = "2169472124"
let APPSECRET = "49d5318fc173209490d76d44e0e4e4d1"

// 新浪微博相关信息
//let APPKEY = "1874746992"
//let APPSECRET = "e858edbb012db73380177148ecf6e8de"
// 回调页
let APPREDIRECT_URI = "http://www.baidu.com"














